package com.freight.user.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class DriverInfoDto extends UserDto {

    //身份证信息
    @ApiModelProperty(value = "联系人 --- 电话")
    private String contactPhone;

    @ApiModelProperty(value = "身份证号")
    private String num;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "生日")
    private String birth;

    @ApiModelProperty(value = "性别")
    private String sex;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyyMMdd")
    @DateTimeFormat(pattern = "yyyyMMdd")
    @ApiModelProperty(value = "身份证起始日期")
    private Date startDate;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyyMMdd")
    @DateTimeFormat(pattern = "yyyyMMdd")
    @ApiModelProperty(value = "身份证结束日期")
    private Date endDate;

    @ApiModelProperty(value = "身份证前置照片地址")
    private String idCardFontPicFileId;

    @ApiModelProperty(value = "身份证后置照片地址")
    private String idCardBackPicFileId;


    //驾驶证信息

    @ApiModelProperty(value = "驾驶证 --- 驾驶证号")
    private String licenseNum;

    @ApiModelProperty(value = "驾驶证准驾车型")
    private String driverType;

    @ApiModelProperty(value = "驾驶证 --- 发证机关")
    private String issuingOrganizations;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyyMMdd")
    @DateTimeFormat(pattern = "yyyyMMdd")
    @ApiModelProperty(value = "驾驶证 --- 初次领证日期")
    private Date issueDate;

    @ApiModelProperty(value = "驾照证正面地址")
    private String driverFontPicFileID;

    //从业资格证

    @ApiModelProperty(value = "从业资格证文件id")
    private String workLicensePicFileId;


}
